package org.siqisource.webstart.base;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.siqisource.webstart.core.utils.condition.Condition;

public interface WebstartMapper<R> {
 
	public void insert(R record);

	public void delete(Integer ... id);

	public void deleteBatch(@Param("condition")Condition condition);

	public void update(R record);

	public void updateSelective(@Param("record")R record);

	public void updateBatchSelective(@Param("condition")Condition condition, @Param("record")R record);

	public R read(Integer ... id);

	int count(@Param("condition")Condition condition);

	List<R> listPage(@Param("condition")Condition  condition, @Param("rowBounds")RowBounds rowBounds);

	List<R> list(@Param("condition")Condition  condition);

}
